﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="OAclient.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>搜索结果</title>

    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>

    <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>

</head>
<body>
    <h3>
        <%=ViewData["noRecord"] %></h3>
    <div>
        <div id="Message_result">
            <div id="sendMsg_result">
                <%=ViewData["sendMsg"]%>
            </div>
            <div id="sendMsg_PageLink">
                <%var sendMsg_PageInfo = ViewData["sendMsg_PageInfo"] as PagingInfo; %>
                <%if (sendMsg_PageInfo != null)
                  { %>
                <%=Ajax.PageLinks(sendMsg_PageInfo, index => Url.Action("SwitchSearchPage", 
                    new { page = index, srchBoundary = "sendMsg", searchText = ViewData["searchText"] }), 
                    new AjaxOptions { UpdateTargetId = "sendMsg_result" })%>
                <%} %>
            </div>
            <div id="receiveMsg_result">
                <%=ViewData["receiveMsg"]%>
            </div>
            <div id="receiveMsg_PageLink">
                <%var receiveMsg_PageInfo = ViewData["receiveMsg_PageInfo"] as PagingInfo; %>
                <%if (receiveMsg_PageInfo != null)
                  { %>
                <%=Ajax.PageLinks(receiveMsg_PageInfo, index => Url.Action("SwitchSearchPage", 
                    new { page = index, srchBoundary = "receiveMsg", searchText = ViewData["searchText"] }),
                    new AjaxOptions { UpdateTargetId = "receiveMsg_result" })%>
                <%} %>
            </div>
        </div>
    </div>
    <div>
        <div id="wf_form_result">
            <%=ViewData["wfForm"]%>
        </div>
        <div id="wf_form_PageLink">
            <%var wf_form_PageInfo = ViewData["wfFrom_PageInfo"] as PagingInfo; %>
            <%if (wf_form_PageInfo != null)
              { %>
            <%=Ajax.PageLinks(wf_form_PageInfo, index => Url.Action("SwitchSearchPage", 
                new { page = index, srchBoundary = "wfFrom", searchText = ViewData["searchText"] }), 
                new AjaxOptions { UpdateTargetId = "wf_form_result" })%>
            <%} %>
        </div>
    </div>
    <div>
        <div id="plan_notify_result">
            <%=ViewData["plan_notify"]%>
        </div>
        <div id="plan_notify_PageLink">
            <%var notify_PageInfo = ViewData["notify_PageInfo"] as PagingInfo; %>
            <%if (notify_PageInfo != null)
              { %>
            <%=Ajax.PageLinks(notify_PageInfo, index => Url.Action("SwitchSearchPage", 
                new { page = index, srchBoundary = "notify", searchText = ViewData["searchText"] }), 
                new AjaxOptions { UpdateTargetId = "plan_notify_result" })%>
            <%} %>
        </div>
    </div>
    <div>
        <div id="wf_template_result">
            <%=ViewData["wf_template"]%>
        </div>
        <div id="wf_template_PageLink">
            <%var wfTemplate_PageInfo = ViewData["wfTemplate_PageInfo"] as PagingInfo; %>
            <%if (wfTemplate_PageInfo != null)
              { %>
            <%=Ajax.PageLinks(wfTemplate_PageInfo, index => Url.Action("SwitchSearchPage",
                new { page = index, srchBoundary = "wfTemplate", searchText = ViewData["searchText"] }),
                new AjaxOptions { UpdateTargetId = "wf_template_result" })%>
            <%} %>
        </div>
    </div>
    <div>
        <div id="wf_ins_result">
            <%=ViewData["wf_ins"]%>
        </div>
        <div id="wf_ins_PageLink">
            <%var wfIns_PageInfo = ViewData["wfIns_PageInfo"] as PagingInfo; %>
            <%if (wfIns_PageInfo != null)
              { %>
            <%=Ajax.PageLinks(wfIns_PageInfo, index => Url.Action("SwitchSearchPage", 
                new { page = index, srchBoundary = "wfIns", searchText = ViewData["searchText"] }),
                new AjaxOptions { UpdateTargetId = "wf_ins_result" })%>
            <%} %>
        </div>
    </div>
    <div>
        <div id="wf_task_result">
            <%=ViewData["wf_task"]%>
        </div>
        <div id="wf_task_PageLink">
            <%var wfTask_PageInfo = ViewData["wfTask_PageInfo"] as PagingInfo; %>
            <%if (wfTask_PageInfo != null)
              { %>
            <%=Ajax.PageLinks(wfTask_PageInfo, index => Url.Action("SwitchSearchPage", 
                new { page = index, srchBoundary = "wfTask", searchText = ViewData["searchText"] }),
                new AjaxOptions { UpdateTargetId = "wf_task_result" })%>
            <%} %>
        </div>
    </div>
</body>
</html>
